package com.imooc.dao;

import com.imooc.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by ${User} on 2018/10/11
 */
@Mapper
public interface MiaoshaUserDao {
    @Select("select * from miaosha_user where id =#{id}")
    public MiaoshaUser getById(@Param("id")long id);
    @Update("update miaosha_user set password =#{password} where id ={id}")
    public void update(MiaoshaUser toBeUpdate);
}
